package com.luban.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * 需要视频资料或咨询课程的同学可以添加若曦老师的QQ:2746251334
 */

@Component
@RocketMQMessageListener(topic = "test",consumerGroup = "testGroup")
public class TestConsumer  implements RocketMQListener<String>{

    @Override
    public void onMessage(String s) {
        System.out.println(s);
    }
}
